package com.study.gupao.proxy.dbroute;

/**
 * @ClassName: OrderServiceImpl
 * @Description:
 * @author: Adminstrator
 * @Date: 2019-03-10 21:12
 */
public class OrderServiceImpl implements IOrderService {

    private OrderDao orderDao;

    public OrderServiceImpl(){
        orderDao = new OrderDao();
    }

    @Override
    public int createOrder(Order order) {
        System.out.println("OrderServiceImpl调用OrderDao创建订单");
        return orderDao.insert(order);
    }
}
